Ext.define('Admin.view.processmodel.ProcessDefinitionUploadForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.processmodel-create-form',
    requires: [
        'Ext.button.Button',
        'Ext.form.field.Text',
        'Ext.form.field.File',
        'Ext.form.field.HtmlEditor'
    ],

    viewModel: {type: 'processmodel'},
    controller: 'processmodel',
    layout: {
        type:'vbox',
        align:'stretch'
    },
    bodyPadding: 10,
    scrollable: true,
    defaults: {
        labelWidth: 60,
        labelSeparator: ''
    },
    items: [{
        xtype: 'textfield',
        name: 'name',
        fieldLabel: '名称',
        allowBlank: false
    },{
        xtype: 'textfield',
        name: 'key',
        fieldLabel: 'KEY',
        allowBlank: false
    },{
        xtype: 'textareafield',
        name: 'description',
        fieldLabel: '描述',
        allowBlank: false
    }],
   	bbar: ['->',{
		xtype: 'button',
		ui: 'soft-green',
		text: '创建',
		handler: 'onClickProcessModelCreateFormSubmitButton'
	},{
		xtype: 'button',
		ui: 'gray',
		text: '取消',
		handler: 'onClickProcessModelCreateFormCancelButton'
	},'->']


});
